package br.edu.ufcg.greengrid.util;

import java.io.File;

public abstract class AbstractLazyList<E> extends MyAbstractList<E> implements ClosableList<E> {

	protected File file;

	protected Transform<E> transform;

	public AbstractLazyList(File file, Transform<E> transform) {
		this.file = file;
		this.transform = transform;
	}

	public void delete(){
		this.file.delete();
	}

	public File getFile() {
		return file;
	}
	
}